package com.xyz.rok.tools.mapper;

import com.xyz.rok.tools.model.Union;

import java.util.List;

public interface UnionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Union record);

    int insertSelective(Union record);

    Union selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Union record);

    int updateByPrimaryKey(Union record);

    List<Union> selectUnionByUserId(Long userId);
    int selectUnionCountByUserId(Long userId);

    List<Union> selectUnionByServerId(Integer serverId);

    List<Union> selectUnionByName(String name);
}